import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*
  测量监测
*/

/**
 * 测量监测列表
 * @param data
 */
 export function getPageTechnicalMeasurementMonitoringList(data){
    return request({
      url: `${faceApiUrl}/technicalMeasurementMonitoring/getPageTechnicalMeasurementMonitoring`,
      method: 'post',
      data
    })
  } 

/**
 * 获取监测详情
 * @param data
 */
 export function getTechnicalMeasurementMonitoringById(data){
    return request({
      url: `${faceApiUrl}/technicalMeasurementMonitoring/getTechnicalMeasurementMonitoringById?id=${data.id}`,
      method: 'get',
      data
    })
  } 

  /**
 * 添加监测
 * @param data
 */
 export function addTechnicalMeasurementMonitoring(data){
    return request({
      url: `${faceApiUrl}/technicalMeasurementMonitoring/insertSelective`,
      method: 'post',
      data
    })
  } 

    /**
 * 编辑监测
 * @param data
 */
 export function updateTechnicalMeasurementMonitoring(data){
    return request({
      url: `${faceApiUrl}/technicalMeasurementMonitoring/updateByPrimaryKeySelective`,
      method: 'post',
      data
    })
  } 
  
  /**
 * 删除监测
 * @param data
 */
 export function deleteTechnicalMeasurementMonitoringById(data){
    return request({
      url: `${faceApiUrl}/technicalMeasurementMonitoring/deleteByPrimaryKey/${data.id}`,
      method: 'get',
    })
  } 
